< previous page page_558 next page >

Page 558
terrain surface, backface removal works as long as the center of projection is relatively high above the surface. For more general surfaces that twist and turn, like Bezier surfaces and B-splines, it is unlikely that you will be able to properly restrict the placement of the center of projection. In that case, you can add sides and a bottom to the surface to make it a closed solid.
Example program Trans uses the previous code to display surfaces of transformation. The program is similar to the Trans program presented in Chapter 14, Surfaces, except it has a Hide Surfaces check box. When you check this box, the program uses backface removal and the Depth-Sort algorithm to display the solid with hidden surfaces removed. Figure 15.15 shows several complex solids created by the program.
z0578-01.gif
Figure 15.15
Surfaces of transformation with hidden surfaces removed.

 
< previous page page_558 next page >